package com.csjbot.alicemobilecontrol.Events;

/**
 * Copyright (c) 2017, SuZhou CsjBot. All Rights Reserved.
 * www.csjbot.com
 * <p>
 * Created by 浦耀宗 at 2017/09/22 0022-17:25.
 * Email: puyz@csjbot.com
 */

public class ServerEvent {

    public static final int CLIENT_CONNECTED = 0;
    public static final int CLIENT_DISCONNECTED = 1;
    private int mTag;
    private Object mMsg;


    public ServerEvent(int tag, Object msg) {
        this.mTag = tag;
        this.mMsg = msg;
    }

    public int getTag() {
        return mTag;
    }

    public void setTag(int mTag) {
        this.mTag = mTag;
    }

    public Object getMsg() {
        return mMsg;
    }

    public void setMsg(Object mMsg) {
        this.mMsg = mMsg;
    }

    public String getMegString() {
        return mMsg.toString();
    }
}
